#ifndef TABLEWIDGET_H
#define TABLEWIDGET_H

#include <QTableWidget>
#include <QStyledItemDelegate>

class RowHoverDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    RowHoverDelegate(QTableWidget *tableWidget, QObject *parent = 0);

private:
    void initStyleOption(QStyleOptionViewItem *option, const QModelIndex &index) const;
    bool isHoveredRow(const QStyleOptionViewItem &option, const QModelIndex &index) const;
};


class TableWidget : public QTableWidget
{
    Q_OBJECT
public:
    explicit TableWidget(QWidget *parent = nullptr);

signals:

};

#endif // TABLEWIDGET_H
